{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">服务器名称</label>
        <div class="layui-input-block">
            <input id="c-title" lay-verify="required" class=" layui-input" name="row[title]" type="text" value="{$data.title}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input id="c-web_url" lay-verify="required" class=" layui-input" name="row[web_url]" type="text" value="{$data.web_url}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登陆昵称</label>
        <div class="layui-input-block">
            <input id="c-username" lay-verify="required" class=" layui-input" name="row[username]" type="text" value="{$data.username}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登陆密码</label>
        <div class="layui-input-block">
            <input id="c-password" lay-verify="required" class=" layui-input" name="row[password]" type="text" value="{$data.password}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea id="c-notes" class=" layui-textarea" rows="5" name="row[notes]" cols="50">{$data.notes}</textarea>
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}